package com.putiman;

import com.putiman.client.RPCClient;
import com.putiman.service.UserService;

import java.net.InetSocketAddress;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        UserService userService = RPCClient.getRemoteProxy(UserService.class, new InetSocketAddress("127.0.0.1", 12345));
        String result = userService.addUserName("putiman");
        System.out.println(result);

    }
}
